package cn.myfrank.mixin;

import net.minecraft.entity.player.HungerManager;
import net.minecraft.entity.player.PlayerEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(PlayerEntity.class)
public class MixinPlayerEntity {
	@Redirect(method = "tickMovement",at = @At(value = "INVOKE",target = "Lnet/minecraft/entity/player/HungerManager;setFoodLevel(I)V"))
    public void method1(HungerManager hm, int foodLevel){
		//do nothing
    }
}
